-
Notifications
You must be signed in to change notification settings - Fork 13.9k
bootstrap: Split out a separate ./x test bootstrap-py step
#148459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
When working on the Rust parts of bootstrap, it's unhelpful for `./x test bootstrap` to also run Python unit tests.
|
r? @clubby789 rustbot has assigned @clubby789. Use |
|
r? @Kobzol |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I was also annoyed by them :)
| let host = builder.config.host_target; | ||
| let build_compiler = builder.compiler(0, host); | ||
| fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> { | ||
| // Bootstrap tests might not be perfectly self-contained and can depend |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the bootstrap Python tests should be fine locally, but they are IMO not very useful anyway, so let's just run them only on CI.
|
@bors r+ |
Rollup of 4 pull requests Successful merges: - #144529 (Add `#[rustc_pass_indirectly_in_non_rustic_abis]`) - #147017 (FCW for repr(C) enums whose discriminant values do not fit into a c_int or c_uint) - #148459 (bootstrap: Split out a separate `./x test bootstrap-py` step) - #148468 (add logging to `fudge_inference_if_ok`) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of #148459 - Zalathar:bootstrap-py, r=Kobzol bootstrap: Split out a separate `./x test bootstrap-py` step While testing changes to bootstrap, I was annoyed by the fact that `./x test bootstrap` spams a bunch of mysterious output to the console. That output turns out to come from `bootstrap_test.py`, which runs unit tests for the Python parts of bootstrap. Those tests are (presumably) useful, but they don't add value when working on the Rust parts of bootstrap. This PR therefore pulls them out into a separate test step that can be run with `./x test bootstrap-py`.
While testing changes to bootstrap, I was annoyed by the fact that
./x test bootstrapspams a bunch of mysterious output to the console.That output turns out to come from
bootstrap_test.py, which runs unit tests for the Python parts of bootstrap. Those tests are (presumably) useful, but they don't add value when working on the Rust parts of bootstrap.This PR therefore pulls them out into a separate test step that can be run with
./x test bootstrap-py.